﻿using System;
using System.Collections.Generic;
using System.Text;
using Mpi.Common.Collections;

namespace Xeml.Document.EnvironmentalOntology
{
    public class ContextSpecCollection : ObservableIdCollectionBase<VariableContextSpec, string>
    {
        protected override string GetIdentifiere(VariableContextSpec item)
        {
            return item.Name;
        }

        protected override void SetOwner(VariableContextSpec item)
        {
            item.Collection = this;
        }

        protected override void RemoveOwner(VariableContextSpec item)
        {
            item.Collection = null;
        }
    }
}
